package br.com.utdd.hibernate;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

import br.com.utdd.cadastro.dto.UsuarioDTO;

public class CriaBanco {

	public static void main(String[] args) {
		AnnotationConfiguration cfg = new AnnotationConfiguration();
		cfg.addAnnotatedClass(UsuarioDTO.class);

		SchemaExport se = new SchemaExport(cfg);
		se.create(true, true);

	}
}
